<template>
  <div class="myprofile">
    <div class="headbox">
      <div class="icon">
        <img
          @click="goMysettings"
          class="iconleft"
          src="../../../components/My/image/weibiaoti.png"
          alt=""
        />
        <h1>个人信息</h1>
        <span @click="goPersonalhead">保存</span>
      </div>
    </div>
    <div class="replacement">
      <span>更换头像</span>
      <div class="repimg">
        <img
          class="leftimg"
          @click="Replacepicture"
          src="../../../components/My/image/shezhi_icon_photo.png"
          alt=""
        />
        <van-popup
          v-model="show"
          closeable
          position="bottom"
          :style="{ height: '30%' }"
          close-icon="close"
          >111</van-popup
        >
        <div class="rightimg">
          <img
            src="../../../components/My/image/jifen_icon_fanhui.png"
            alt=""
          />
        </div>
      </div>
    </div>
    <div class="replacement">
      <span>修改名字</span>
      <div class="repimg">
        <p>Hna</p>
        <div class="rightimg">
          <img
            src="../../../components/My/image/jifen_icon_fanhui.png"
            alt=""
          />
        </div>
      </div>
    </div>
    <div class="replacement">
      <span>性别</span>
      <div class="repimg">
        <p>请选择</p>
        <div class="rightimg">
          <img
            src="../../../components/My/image/jifen_icon_fanhui.png"
            alt=""
          />
        </div>
      </div>
    </div>
    <div class="replacement">
      <span>出生年</span>
      <div class="repimg">
        <p>年 月 日</p>
        <div class="rightimg">
          <img
            src="../../../components/My/image/jifen_icon_fanhui.png"
            alt=""
          />
        </div>
      </div>
    </div>
    <div class="replacement plus">
      <span>个人简介</span>
      <div class="repimg">
        <p></p>
        <div class="rightimg">
          <img
            src="../../../components/My/image/jifen_icon_fanhui.png"
            alt=""
          />
        </div>
      </div>
      <div class="pluscount">用几句简短话介绍一下吧……</div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      show: false,
    };
  },
  methods: {
    goMysettings() {
      this.$router.go(-1);
    },
    goPersonalhead() {
      this.$router.push({ path: "/home/my" });
    },
    Replacepicture() {
      this.show = true;
    },
  },
};
</script>

<style lang="scss">
* {
  padding: 0;
  margin: 0;
}
.myprofile {
  width: 750px;
  height: 1624px;
  background: #f5f5f5;
  color: #2f2f2f;
  .headbox {
    width: 100%;
    height: 220px;
    background: #ffffff;
  }
  .icon {
    margin-left: 42px;
    height: 162px;
    line-height: 48px;
    padding-top: 114px;
    margin-right: 32px;
    margin-bottom: 54px;
  }
  .icon .iconleft {
    float: left;
    width: 30px;
    height: 30px;
    display: block;
    margin: 9px 0px;
  }
  .icon .iconright {
    float: left;
    width: 30px;
    height: 30px;
    margin-left: 230px;
    margin-top: 10px;
  }
  .icon h1 {
    float: left;
    width: 200px;
    height: 48px;
    position: relative;
    left: 275px;
    font-size: 35px;
  }
  .icon span {
    width: 60px;
    height: 42px;
    font-size: 30px;
    float: right;
  }
  .replacement {
    width: 620px;
    height: 160px;
    margin: 0 auto;
    line-height: 162px;
    border-bottom: 1px solid #707070;
  }
  .replacement span {
    float: left;
    font-size: 30px;
    width: 220px;
  }
  .repimg {
    // margin: 20px 0px;
    padding: 21px 0px;
    float: right;
    width: 184px;
    height: 162px;
    // background: gold;
  }
  .repimg p {
    float: left;
    width: 120px;
    height: 120px;
    line-height: 120px;
    font-size: 30px;
  }
  .leftimg {
    width: 120px;
    height: 120px;
    float: left;
  }
  .rightimg {
    float: right;
    // width: 120px;
    height: 120px;
    display: block;
  }
  .plus {
    width: 620px;
    height: 220px;
    margin: 0 auto;
    line-height: 162px;
    border-bottom: 1px solid #707070;
  }
  .pluscount {
    width: 620px;
    height: 20px;
    float: left;
    line-height: 20px;
  }
}
</style>
